package com.ws.lv.mapper;

import com.ws.lv.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface UserMapper {
    int insertUser (User user);

    User selectUserByUser_name(String user_name);

    List<User> selectUsers(@Param("user_name") String user_name,@Param("user_phone") String user_phone);

    User selectUserByUser_id(int user_id);

    int updateUser(User user);

    int updateUserPass(@Param("newPass") String newPass,@Param("user_id") int user_id);

    int deleteUsers(ArrayList<Integer> user_ids);

    int deleteUser(int user_id);


}
